package hlhj.fhp.newslib.javabean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2018\6\12 0012.
 */

public class ColumBean implements Serializable {

    /**
     * code : 1
     * message : 获取栏目列表成功
     * data : {"default":[{"id":1,"category_name":"推荐","is_top":1,"add_time":"0000-00-00 00:00:00","is_must":1,"is_default":1,"is_delete":"0"},{"id":2,"category_name":"视频","is_top":0,"add_time":"0000-00-00 00:00:00","is_must":1,"is_default":1,"is_delete":"0"},{"id":3,"category_name":"图集","is_top":0,"add_time":"0000-00-00 00:00:00","is_must":1,"is_default":1,"is_delete":"0"}],"all":[{"id":1,"category_name":"推荐"},{"id":2,"category_name":"视频"},{"id":3,"category_name":"图集"},{"id":4,"category_name":"娱乐"},{"id":5,"category_name":"体育"}]}
     */

    private int code;
    private String message;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Serializable{
        @SerializedName("default")
        private List<DefaultBean> defaultX;
        private List<AllBean> all;

        public List<DefaultBean> getDefaultX() {
            return defaultX;
        }

        public void setDefaultX(List<DefaultBean> defaultX) {
            this.defaultX = defaultX;
        }

        public List<AllBean> getAll() {
            return all;
        }

        public void setAll(List<AllBean> all) {
            this.all = all;
        }

        public static class DefaultBean implements Serializable{
            /**
             * id : 1
             * category_name : 推荐
             * is_top : 1
             * add_time : 0000-00-00 00:00:00
             * is_must : 1
             * is_default : 1
             * is_delete : 0
             */

            private int id;
            private String category_name;
            private int is_top;
            private String add_time;
            private int is_must;
            private int is_default;
            private String is_delete;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getCategory_name() {
                return category_name;
            }

            public void setCategory_name(String category_name) {
                this.category_name = category_name;
            }

            public int getIs_top() {
                return is_top;
            }

            public void setIs_top(int is_top) {
                this.is_top = is_top;
            }

            public String getAdd_time() {
                return add_time;
            }

            public void setAdd_time(String add_time) {
                this.add_time = add_time;
            }

            public int getIs_must() {
                return is_must;
            }

            public void setIs_must(int is_must) {
                this.is_must = is_must;
            }

            public int getIs_default() {
                return is_default;
            }

            public void setIs_default(int is_default) {
                this.is_default = is_default;
            }

            public String getIs_delete() {
                return is_delete;
            }

            public void setIs_delete(String is_delete) {
                this.is_delete = is_delete;
            }
        }

        public static class AllBean implements Serializable{
            /**
             * id : 1
             * category_name : 推荐
             */

            private int id;
            private String category_name;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getCategory_name() {
                return category_name;
            }

            public void setCategory_name(String category_name) {
                this.category_name = category_name;
            }
        }
    }
}
